3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next
A marker is a two-dimensional object typically used to indicate the position of an object (or part of an object) in a window. QuickDraw 3D provides two types of markers, bitmap markers and pixmap markers. A bitmap marker is defined by the TQ3MarkerData data type, which contains a bitmap and a location, together with an optional set of attributes. A pixmap marker is defined by the TQ3PixmapMarkerData data type, which contains a pixmap and a location, together with an optional set of attributes.
The bitmap or pixmap specifies the image that is to be drawn on top of a rendered scene at the specified location. The marker is drawn perpendicular to the viewing vector, aligned with the window, with its origin located at the specified location. A marker is always drawn with the same size, no matter which rotations, scalings, or other transformations might be active. Figure 37 shows a bitmap marker.
typedef struct TQ3MarkerData {
TQ3Point3D location;
long xOffset;
long yOffset;
TQ3Bitmap bitmap;
TQ3AttributeSet markerAttributeSet;
} TQ3MarkerData;
typedef struct TQ3PixmapMarkerData {
TQ3Point3D position;
long xOffset;
long yOffset;
TQ3StoragePixmap pixmap;
TQ3AttributeSet pixmapMarkerAttributeSet;
} TQ3PixmapMarkerData;
Previous | QD3D Book | Overview | Chapter Contents | Next